package com.cn.transfer.common.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import lombok.Data;

import java.math.BigDecimal;
import java.util.Date;
import java.util.List;

/**
 * @author: weidian
 * @date: 2023/10/25 16:21
 * @Description: ${description}
 */
/**
    * 采购到货单
    */
@Data
@JsonIgnoreProperties(ignoreUnknown = true)
@TableName(value = "VV_PU_PurchaseArrival")
public class VvPuPurchaseArrival {
    private String _id;
    /**
     * 出库单ID
     */
    @TableField(value = "id")
    private Long id;

    /**
     * 汇率
     */
    @TableField(value = "exchange_rate")
    private Long exchange_rate;

    /**
     * 单据日期
     */
    @TableField(value = "voucher_date")
    private Date voucher_date;

    /**
     * 单据编号
     */
    @TableField(value = "code")
    private String code;

    /**
     * 业务类型
     */
    @TableField(value = "business_type")
    private String business_type;

    /**
     * 供应商
     */
    @TableField(value = "supplier")
    private String supplier;

    /**
     * 部门
     */
    @TableField(value = "department")
    private String department;

    /**
     * 业务员
     */
    @TableField(value = "salesman")
    private String salesman;

    /**
     * 仓库
     */
    @TableField(value = "warehouse")
    private String warehouse;

    /**
     * 币种
     */
    @TableField(value = "currency")
    private String currency;

    /**
     * 联系人
     */
    @TableField(value = "contact_person")
    private String contact_person;

    /**
     * 联系电话
     */
    @TableField(value = "contact_phone")
    private String contact_phone;

    /**
     * 使用预付
     */
    @TableField(value = "use_advance_payment")
    private BigDecimal use_advance_payment;

    /**
     * 现结金额
     */
    @TableField(value = "cash_amount")
    private BigDecimal cash_amount;

    /**
     * 销售订单号
     */
    @TableField(value = "sale_order_code")
    private String sale_order_code;

    /**
     * 来源单号
     */
    @TableField(value = "source_voucher_code")
    private String source_voucher_code;

    /**
     * 采购订单号
     */
    @TableField(value = "purchase_order_code")
    private String purchase_order_code;

    /**
     * 出货地点
     */
    @TableField(value = "delivery_location")
    private String delivery_location;

    /**
     * 业务部门
     */
    @TableField(value = "business_department")
    private String business_department;

    /**
     * 自营合同号新
     */
    @TableField(value = "new_contract")
    private String new_contract;

    /**
     * 核算组织
     */
    @TableField(value = "accounting_organization")
    private String accounting_organization;

    /**
     * 供货商电子邮件
     */
    @TableField(value = "supplier_email")
    private String supplier_email;

    /**
     * 供货商送货单号
     */
    @TableField(value = "supplier_delivery_code")
    private String supplier_delivery_code;

    /**
     * 备注
     */
    @TableField(value = "memo")
    private String memo;

    /**
     * 制单人地址
     */
    @TableField(value = "maker_address")
    private String maker_address;

    /**
     * 制单日期
     */
    @TableField(value = "made_date")
    private Date made_date;

    /**
     * 审核日期
     */
    @TableField(value = "audited_date")
    private Date audited_date;

    /**
     * 审核人
     */
    @TableField(value = "auditorid")
    private String auditorid;

    @TableField(exist = false)
    private List<VvPuPurchaseArrivalB> arrival_list;

}